var code = getQueryParamValue("code");
var appid = getQueryParamValue("appid");
var rootPath = getRootPath();	

if(code!=undefined && code!="" && appid!=undefined && appid!=""){
	$.ajax({
		type : 'PUT',
		url : rootPath+'/wechat/interfaces/api/cookies?code='+code+"&appid="+appid,
		contentType:"application/json",
		async:false,
		error:function(XMLHttpRequest, ajaxOptions, thrownError){
			
		},
		success : function(data){
		}
			
	});
}
	
